package com.sita.tboard.view;

import android.content.Context;
import android.view.View;

import java.util.List;

public abstract class NineGridAdapter<T> {
    private Context context;
    private List<T> data;
    public NineGridAdapter(Context mContext, List<T> mList) {
        context = mContext;
        data = mList;
    }

    protected Context getContext(){
        return context;
    }

    protected List<T> getData(){
        return data;
    }

    public abstract int getCount();

    public abstract String getUrl(int position);

    public abstract T getItem(int position);

    public abstract View getView(int i, View view);
}
